<template>
    <div>
        <h1>test.vue
        </h1>
            {{test}}
        <br/>
        <ul>
            <li v-for="(item,index) in array" :key="index" >
                {{item}}


            </li>
        </ul>
    </div>
</template>
<script>
    export default {

        name: 'test',
        // 接收引用组件时的参数
        props: {
            test: String
        },data:function () {
            return{
                array:["one",2,"three"]
            }
        }
    }

</script>
<style scoped>
    h1{
        color: blueviolet;
    }
</style>